using System;
using System.Collections.Generic;
using System.Text;
using System.Globalization;
using System.Resources;
using System.Threading;
using System.Reflection;

namespace Ent.Web
{
    public class VibzResource
    {
        private static ResourceManager rm;
        public static void Init(string baseName, Assembly assembly)
        {
            rm = new ResourceManager(baseName, assembly);
        }
        public static string GetString(string name)
        {
            return GetString(name, null);
        }
        public static string GetString(string name, string culture)
        {
            if (culture == null || culture == "")
                return rm.GetString(name);
            else
                return rm.GetString(name, new CultureInfo(culture));
        }
    }
}
